package com.wushi.lenovo.asia5b.app_ui.home.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wushi.lenovo.asia5b.R;

import java.util.List;

/**
 * Created by zhangyuncai on 2019/4/6.
 */
public class SearchAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public SearchAdapter(@Nullable List<String> data) {
        super(R.layout.item_search_adapter, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setText(R.id.tv_search_content, item);
    }

//    @Override
//    public int getItemCount() {
//        if (mData.size() > 10) {
//            return 10;
//        }
//        return mData.size();
//    }
}
